import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Random;


public class CreateRandomFile {
	
	static final String TESTFOLDER = "cases";
	
	public static void main(String args[]){
		File testcases = new File(TESTFOLDER);
		File random = new File(testcases,"testrandom");
		Random r = new Random(System.currentTimeMillis());
		try {
			random.createNewFile();
			BufferedWriter bw = new BufferedWriter(new FileWriter(random));
			bw.write("1000");
			bw.write('\n');
			for(int i=0;i<1000;i++){
				bw.write((r.nextDouble()*(1000000))+" "+(r.nextDouble()*(1000000))+"\n");
			}
			bw.close();
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
